package com.bt.table.ppt;

/**
 * Bis_path_nodesId entity. @author MyEclipse Persistence Tools
 */

public class Bis_path_nodeId implements java.io.Serializable {

	// Fields    

	private Integer chart_id;
	private String block_id;

	// Constructors

	/** default constructor */
	public Bis_path_nodeId() {
	}

	/** full constructor */
	public Bis_path_nodeId(Integer chart_id, String block_id) {
		this.chart_id = chart_id;
		this.block_id = block_id;
	}

	// Property accessors

	public Integer getChart_id() {
		return this.chart_id;
	}

	public void setChart_id(Integer chart_id) {
		this.chart_id = chart_id;
	}

	public String getBlock_id() {
		return this.block_id;
	}

	public void setBlock_id(String block_id) {
		this.block_id = block_id;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bis_path_nodeId))
			return false;
		Bis_path_nodeId castOther = (Bis_path_nodeId) other;

		return ((this.getChart_id() == castOther.getChart_id()) || (this.getChart_id() != null && castOther.getChart_id() != null && this
				.getChart_id().equals(castOther.getChart_id())))
				&& ((this.getBlock_id() == castOther.getBlock_id()) || (this.getBlock_id() != null
						&& castOther.getBlock_id() != null && this.getBlock_id().equals(castOther.getBlock_id())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getChart_id() == null ? 0 : this.getChart_id().hashCode());
		result = 37 * result + (getBlock_id() == null ? 0 : this.getBlock_id().hashCode());
		return result;
	}

}